package com.panshi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppCommentT对象", description="资讯、回答评论表")
public class AppComment<AppUser> implements Serializable {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "父级用户id")
    private Integer coverUserId;

    @ApiModelProperty(value = "父级评论id")
    private Integer coverCommentId;

    @ApiModelProperty(value = "评论用户id")
    private Integer userId;

    @ApiModelProperty(value = "评论id(类型: 资讯/回答)")
    private Integer commentId;

    @ApiModelProperty(value = "评论类型 zx资讯; a回答")
    private String commentType;

    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    @ApiModelProperty(value = "评论等级: 1级; 2级; 3其他等级")
    private String commentGrade;

    @ApiModelProperty(value = "状态: 0草稿, 1上架, 2审核中; 3未通过审核")
    private String commentStatus;

/*
    @ApiModelProperty(value = "是否删除: 1是; 0否")
    private Integer isRemove;
*/

    @ApiModelProperty(value = "创建时间")
    private String createTime;

/*    @ApiModelProperty(value = "上架时间")
    private String groundTime;

    @ApiModelProperty(value = "审核时间")
    private String checkTime;

    @ApiModelProperty(value = "删除时间")
    private String removeTime;*/

    @ApiModelProperty(value = "评论点赞量")
    private Integer pariseCount;

    @ApiModelProperty(value = "父级评论用户信息")
    private AppUser coverAppUser;

    @ApiModelProperty(value = "评论用户信息")
    private AppUser appUser;


}
